package com.car.order.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.car.order.dto.stock.StockDto;
import com.car.order.entity.Stock;
import com.car.order.entity.form.stock.StockFindListForm;
import com.car.order.entity.form.stock.StockFindPageForm;
import com.car.order.entity.form.stock.StockUpdateForm;
import com.car.order.entity.param.stock.StockInsertParam;
import com.car.order.entity.param.stock.StockUpdateParam;

import java.util.List;
/**
 * @author 杜岷芫
 * @since 2024-08-29 11:43:37
 */
public interface StockService extends IService<Stock> {

    Page<StockDto> findPage(StockFindPageForm form);

    List<Stock> findList(StockFindListForm form);

    Stock findById(Integer id);

    Stock insert(StockInsertParam form);

    Stock update(StockUpdateForm form);

    void changeState(Integer id, Integer state);

    Stock clerkIdInsert(StockInsertParam param);

    Stock add(StockUpdateParam param);

    Stock reduce(StockUpdateParam param);

    Stock changeStock(StockUpdateParam param);
}